package tech.aistar.entity.dynamic;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by David on 2019/9/27.
 */
public class News implements Serializable {
    private Integer newsId;

    private Date submitdate;

    private String newstitle;

    private String content;

    private Integer sectionId;

    private Integer picId;

    private Integer looktimes;

    public News() {
    }

    public News(Integer newsId, Date submitdate, String newstitle, String content, Integer sectionId, Integer picId, Integer looktimes) {
        this.newsId = newsId;
        this.submitdate = submitdate;
        this.newstitle = newstitle;
        this.content = content;
        this.sectionId = sectionId;
        this.picId = picId;
        this.looktimes = looktimes;
    }

    public Integer getNewsId() {
        return newsId;
    }

    public void setNewsId(Integer newsId) {
        this.newsId = newsId;
    }

    public Date getSubmitdate() {
        return submitdate;
    }

    public void setSubmitdate(Date submitdate) {
        this.submitdate = submitdate;
    }

    public String getNewstitle() {
        return newstitle;
    }

    public void setNewstitle(String newstitle) {
        this.newstitle = newstitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getSectionId() {
        return sectionId;
    }

    public void setSectionId(Integer sectionId) {
        this.sectionId = sectionId;
    }

    public Integer getPicId() {
        return picId;
    }

    public void setPicId(Integer picId) {
        this.picId = picId;
    }

    public Integer getLooktimes() {
        return looktimes;
    }

    public void setLooktimes(Integer looktimes) {
        this.looktimes = looktimes;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("News{");
        sb.append("newsId=").append(newsId);
        sb.append(", submitdate=").append(submitdate);
        sb.append(", newstitle='").append(newstitle).append('\'');
        sb.append(", content='").append(content).append('\'');
        sb.append(", sectionId=").append(sectionId);
        sb.append(", picId=").append(picId);
        sb.append(", looktimes=").append(looktimes);
        sb.append('}');
        return sb.toString();
    }
}
